package com.lcf.system.controller;


import com.lcf.framework.vo.PageVO;
import com.lcf.system.query.PriceRecordPageQuery;
import com.lcf.system.service.PriceRecordService;
import com.lcf.system.vo.PriceRecordVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 收入记录(PriceRecord)表控制层
 *
 * @author lcf
 * @since 2025-05-02 11:55:01
 */
@Tag(name = "收入记录")
@RestController
@RequestMapping("priceRecord")
public class PriceRecordController {
    @Resource
    private PriceRecordService priceRecordService;

    /**
     * 查询收入记录
     */
    @Operation(summary = "查询收入记录")
    @GetMapping("getPriceRecord")
    public PageVO<PriceRecordVO> getPriceRecord(PriceRecordPageQuery query) {
        return priceRecordService.getPriceRecord(query);
    }
}

